package prototypes;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class TestUtilities {

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testWrap1() {

		String testString = "123456789012345678901234567890123";
		
		String result = Utilities.wrap(10, testString);
		
		String expected = "1234567890\n1234567890\n1234567890\n123\n";
		
		assertTrue(result.equals(expected));

	}
	
	@Test
	public void testWrap2() {

		String testString = "123456789012345678901234567890";
		
		String result = Utilities.wrap(10, testString);
				
		String expected = "1234567890\n1234567890\n1234567890\n";
		
		assertTrue(result.equals(expected));

	}

}
